<#include "../common/_header.htm">
<div id="hidebox" style="height:100%;width:100%">
    <div class="box-body table-responsive">
        <table id="table" class="table text-nowrap"></table>
    </div>
</div>
<script>
    $(function() {
        /** 回去传值 **/
        var dialog = top.dialog.get(window);
        var data = dialog.data; // 获取对话框传递过来的数据
        $('#table').datagrid({
            url: '${ctx}/bszjzy/diffday_detail',
            method: 'post',
            iconCls: 'icon-save',
            queryParams:{//每次请求的参数
                accountBodyCard:data.accountBodyCard,
                accountRivalCard:data.accountRivalCard,
                accountBody:data.accountBody,
                accountRival:data.accountRival,
                accountRivalBank:data.accountRivalBank,
                sign:data.sign,
                casemanageId:data.casemanageId,
                beginDate: getMyDate(data.beginDate),
                endDate: getMyDate(data.endDate),
                hour:data.hour
            },
            pageSize:30,
            pageList:[30,50,100,150,200],
            pageNumber:1,//当前页号,
            loadMsg:"正在加载，请稍后",//加载数据时的提示信息
            emptyMsg:"暂无信息",//加载数据为空时的信息
            height:($(window).height())-50,
            rownumbers:true,//序号
            fitColumns: true,//使表格自适应页面宽度
            //pagination: true,//是否分页
            singleSelect: true,
            columns:[[ //每一列的具体设置。
                {field:'ACCOUNT_BODY',title:'交易主体'},
                {field:'ACCOUNT_BODY_CARD',title:'交易主体卡号'},
                {field:'ACCOUNT_RIVAL',title:'交易对手'},
                {field:'ACCOUNT_RIVAL_CARD',title:'交易对手卡号'},
                {field:'ACCOUNT_RIVAL_BANK',title:'交易对手银行'},
                {field:'TRADE_DATE',title:'交易日期'},
                {field:'COUNT',title:'交易次数'},
                {field:'TRADE_TOTAL_MONEY',title:'交易总金额'},
            ]],
            onHeaderContextMenu: function(e, field){
                e.preventDefault();
                if (!cmenu){
                    createColumnMenu();
                }
                cmenu.menu('show', {
                    left:e.pageX,
                    top:e.pageY
                });
            }
        })
    });
</script>
<style>
    #hidebox {
        top: 23px;
        left: 2%;
        border-radius: 5px;
        background-color:#fff;
        z-Index:9999;
        padding: 10px;
        overflow:hidden;
    }
    .box-body.table-responsive {
        height: 100%;
    }
</style>
</body>
</html>
